home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / ACORNUSERS / CBSA / EDUCATION / LOADER / cc / Test next >
Text File  |  1997-12-20  |  709b  |  51 lines

  1.  
  2. //-----------------------------------
  3. //             Test.c
  4. //-----------------------------------
  5.  
  6. #include <string.h>
  7. #include <iostream.h>
  8. #include "os.h"
  9. #include "trap.h"
  10. #include "WimpTask.h"
  11. #include "WimpError.h"
  12. #include "WimpIcon.h"
  13.  
  14. class MyTask : public WimpTask
  15. {
  16.   public:
  17.   
  18.   MyTask(char *);
  19.   bool ButtonPressed();
  20.   bool load(char *, int, int);
  21. };
  22.  
  23. MyTask::MyTask(char *name) : WimpTask(name) 
  24. {
  25.   EnableEvent(EBUT);
  26. }
  27.  
  28. bool MyTask::ButtonPressed()
  29. {
  30.   if (Mouse_Click.window = -2) return(TRUE);
  31.   return(FALSE);
  32. }
  33.  
  34. bool MyTask::load(char *filename, int size, int type)
  35. {
  36.   throw(filename);
  37.   return FALSE;
  38. }
  39.  
  40. int main()
  41. {
  42.   MyTask a("CouCou"); 
  43.   WimpIcon b("my_sprite");
  44.   a.run();
  45. }
  46.  
  47.  
  48.  
  49.  
  50.  
  51.